﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace Microhard.FMCG.Buz.DataAccess
{
    public class DBHelper
    {
        public static SqlConnection GetCNN()
        {
            string cnn = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Persist Security Info=False";
            string dbfile = Environment.CurrentDirectory + @"\DataAccess\FMCG2.mdb";
            cnn = string.Format(cnn, dbfile);
            return new SqlConnection(cnn);
        }
    }
}
